

package com.maoshi.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.maoshi.shop.bean.model.UserExtension;
import com.maoshi.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

/**
 * 用户扩展信息
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
public interface UserExtensionMapper extends BaseMapper<UserExtension> {

    void updateByVersion(@Param("userExtension") UserExtension userExtension);

    Page<UserExtension> getPage(PageParam<UserExtension> page, @Param("userExtension") UserExtension userExtension);

    void setUserLevelBylevelId(@Param("level")Integer level);

    void serMaxUserLavelByLevelId(@Param("level")Integer level,@Param("minNeedGrowth")Integer minNeedGrowth, @Param("maxNeedGrowth")Integer maxNeedGrowth);
}
